﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DepartmentPage.aspx.cs" Inherits="UniversityStudentManagemnetSystem.UI.DeapartmentPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
 <style type="text/css">
        .style4
        {
            width: 118px;
        }
        .style5
        {
            height: 21px;
        }
        #dateText
        {
            height: 17px;
            margin-bottom: 5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div align="center">
<fieldset style="width: 800px; height:600px;">
    <div align="center">
    <fieldset style="width: 350px; height: 140px;">
    <legend>Department Entry</legend>
    <table>
    <tr>
    <td>
<asp:Label ID="Label1" runat="server" Text="Code"></asp:Label>
</td>
<td>
<asp:TextBox ID="codeTextBox" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="nameTextBox" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="deptSaveButton" runat="server" onclick="deptSaveButton_Click" 
Text="Save" />
</td>
</tr>
</table>
<asp:Label ID="messageLabel" runat="server"></asp:Label>
</fieldset> 
</div>

<div align="center">
    <fieldset style="width: 300px; height: 300px; color: Maroon">
    <legend style="text-decoration: blink">Department View</legend>
<asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Height="250px" Width="250px">
 <asp:GridView ID="departmentGridView" runat="server" BackColor="White" 
        BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        onselectedindexchanged="departmentGridView_SelectedIndexChanged">
     <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
     <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
     <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
     <RowStyle BackColor="White" ForeColor="#330099" />
     <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
     <SortedAscendingCellStyle BackColor="#FEFCEB" />
     <SortedAscendingHeaderStyle BackColor="#AF0101" />
     <SortedDescendingCellStyle BackColor="#F6F0C0" />
     <SortedDescendingHeaderStyle BackColor="#7E0000" />
 </asp:GridView>
</asp:Panel>
    </fieldset>
     </div>
     </fieldset>
     </div>   
</asp:Content>
